home *** CD-ROM | disk | FTP | other *** search
/ NetObjects Fusion 7 / Fusion7.iso / NetObjects Fusion / data1.cab / Fsi / InitFusion / dialogsize.js < prev    next >
Encoding:
Text File  |  2002-10-18  |  531 b   |  19 lines

  1. function setDialogSize(x, y)
  2. {
  3.     var app2 = new ActiveXObject('FSI.FSIApplication2');
  4.     var x1 = x * app2.LogPixelsX / 96;
  5.     var y1 = y * app2.LogPixelsY / 96;
  6.  
  7.     if (x1 != document.body.clientWidth || y1 != document.body.clientHeight)
  8.     {
  9.         var h = window.dialogHeight;
  10.         h = h.substr(0, h.length - 2) - 0;
  11.         var w = window.dialogWidth;
  12.         w = w.substr(0, w.length - 2) - 0;
  13.         
  14.         window.dialogWidth = w + x1 - document.body.clientWidth + 'px';
  15.         window.dialogHeight = h + y1 - document.body.clientHeight + 'px';
  16.     }
  17. }
  18.  
  19.